package com.gs.api.projects.shejiao.service.impl;

import com.gs.api.projects.shejiao.entity.TMSaveNote;
import com.gs.api.projects.shejiao.dao.TMSaveNoteDao;
import com.gs.api.projects.shejiao.service.ITMSaveNoteService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 存纸条表 服务实现类
 * </p>
 *
 * @author guoshao
 * @since 2021-10-09
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class TMSaveNoteServiceImpl extends ServiceImpl<TMSaveNoteDao, TMSaveNote> implements ITMSaveNoteService {

    @Autowired
    private TMSaveNoteDao tmSaveNoteDao;

    @Override
    public TMSaveNote getRandSaveNotes(TMSaveNote note) {
        return tmSaveNoteDao.getRandSaveNotes(note);
    }

    @Override
    public int insertTake(Long saveId) {
        return tmSaveNoteDao.insertTake(saveId);
    }
}
